package com.hylu.springcloud.dto;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

public class BookDTO implements Serializable {

    @NotEmpty(message = "书名不能为空")
    @Length(min = 5, max = 16, message = "长度为 5-16 位")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
